import URLS from '../../config/urls'
import {get, post} from './ajax'

let base = URLS.API_URL;

// 用户相关
export const postRegister = p => post(`${base}api/register/`, p);
export const getRegister = p => get(`${base}api/register/`, p);
export const postLogin = p => post(`${base}api/login/`, p);
export const getLogin = p => get(`${base}api/login/`, p);
// export const testRequest = p => get(`${base}/test/`, p);
// http://127.0.0.1:8000/test/
